import request from "@/utils/request";

// 字典
export function getTypeList(params) {
	return request({
		url: `/system/dict/data/dp/typeNew/${params}`,
		method: 'get',
	})
}

// 查询(叫号系统)号源列表
export function sourceList(params) {
	return request({
		url: `/system/source/list`,
		method: 'get',
		params
	})
}
// 获取(叫号系统)号源详细信息
export function findSource(id) {
	return request({
		url: `/system/source/${id}`,
		method: 'get'
	})
}

// 
export function selectChildrenTypeById(id) {
	return request({
		url: `/ylj/type/dp/selectChildrenTypeById?typeId=${id}`,
		method: "get",
	})
}

export function selectTypeById(id) {
	return request({
		url: `/system/type/${id}`,
		method: "get",
	})
}

export function appointmentForm(data) {
	return request({
		url: `/system/appointmentForm`,
		method: "post",
		data
	})
}

export const findAppointmentForm = (params) => {
	return request({
		url: `/system/appointmentForm/list`,
		method: 'get',
		params
	})
}

export const findSingAppointmentForm = (id) => {
	return request({
		url: `/system/appointmentForm/${id}`,
		method: 'get',
	})
}
// 删除预约单
export function delAppointmentForm(id) {
	return request({
		url: '/system/appointmentForm/' + id,
		method: 'delete'
	})
}